const express = require('express')
const router = express.Router()
const carController = require('../controllers/carController')

// 根据门店获取车辆
router
  .get('/:shop_id', carController.getCarListByShop)
  // 添加类型
  .post('/', carController.addCar)
  // 修改类型
  .put('/', carController.updateCar)
  // 删除车
  .delete('/', carController.deleteCar)

module.exports = router
